package com.lz.vo.xjl;

import com.lz.entity.EquipmentSheet;
import com.lz.entity.InstallationPerson;
import com.lz.entity.TemporaryCarParts;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**@EquipmentSheet的VO类
 * @author 徐建林
 * @date 2018/10/25 8:18
 */
public class ViewEquipmentSheetVO {
    private Integer equipmentSheetNo;
    private String upholsteryType;
    private String equipmentSheetState;
    private String employeeName;
    private String comment;
    private Integer customerId;
    private String customerName;
    private String customerTel;
    private String series;
    private String model;
    private String color;
    private String vin;
    private String carCard;
    private Integer orderId;
    private Date startTime;
    private Date endingTime;
    private Integer personNo;
    private Double totalPrice;
    private Double givenMoney;
    private Double receivables;
    private List<InstallationPerson> installationPersonList;
    private List<TemporaryCarParts> temporaryCarPartsList;

    public List<TemporaryCarParts> getTemporaryCarPartsList() {
        return temporaryCarPartsList;
    }

    public void setTemporaryCarPartsList(List<TemporaryCarParts> temporaryCarPartsList) {
        this.temporaryCarPartsList = temporaryCarPartsList;
    }

    public Integer getPersonNo() {
        return personNo;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Double getGivenMoney() {
        return givenMoney;
    }

    public void setGivenMoney(Double givenMoney) {
        this.givenMoney = givenMoney;
    }

    public Double getReceivables() {
        return receivables;
    }

    public void setReceivables(Double receivables) {
        this.receivables = receivables;
    }

    public void setPersonNo(Integer personNo) {
        this.personNo = personNo;
    }

    public Integer getEquipmentSheetNo() {
        return equipmentSheetNo;
    }

    public void setEquipmentSheetNo(Integer equipmentSheetNo) {
        this.equipmentSheetNo = equipmentSheetNo;
    }

    public String getUpholsteryType() {
        return upholsteryType;
    }

    public void setUpholsteryType(String upholsteryType) {
        this.upholsteryType = upholsteryType;
    }

    public String getEquipmentSheetState() {
        return equipmentSheetState;
    }

    public void setEquipmentSheetState(String equipmentSheetState) {
        this.equipmentSheetState = equipmentSheetState;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerTel() {
        return customerTel;
    }

    public void setCustomerTel(String customerTel) {
        this.customerTel = customerTel;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public String getCarCard() {
        return carCard;
    }

    public void setCarCard(String carCard) {
        this.carCard = carCard;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndingTime() {
        return endingTime;
    }

    public void setEndingTime(Date endingTime) {
        this.endingTime = endingTime;
    }

    public List<InstallationPerson> getInstallationPersonList() {
        return installationPersonList;
    }

    public void setInstallationPersonList(List<InstallationPerson> installationPersonList) {
        this.installationPersonList = installationPersonList;
    }

    @Override
    public String toString() {
        return "EquipmentSheetVO{" +
                "equipmentSheetNo=" + equipmentSheetNo +
                ", upholsteryType='" + upholsteryType + '\'' +
                ", equipmentSheetState='" + equipmentSheetState + '\'' +
                ", employeeName='" + employeeName + '\'' +

                ", comment='" + comment + '\'' +
                ", customerId=" + customerId +
                ", customerName='" + customerName + '\'' +
                ", customerTel='" + customerTel + '\'' +
                ", series='" + series + '\'' +
                ", model='" + model + '\'' +
                ", color='" + color + '\'' +
                ", vin='" + vin + '\'' +
                ", carCard='" + carCard + '\'' +
                ", orderId=" + orderId +
                ", startTime=" + startTime +
                ", endingTime=" + endingTime +
                '}';
    }

    public ViewEquipmentSheetVO() {
    }

    public ViewEquipmentSheetVO(EquipmentSheet equipmentSheet,List<InstallationPerson> installationPersonList,List<TemporaryCarParts> temporaryCarPartsList) {
        equipmentSheetNo=equipmentSheet.getEquipmentSheetNo();
        upholsteryType=equipmentSheet.getUpholsteryType().getUpholsteryType();
        equipmentSheetState=equipmentSheet.getEquipmentSheetState();
        employeeName=equipmentSheet.getEmployee().getEmployeeName();
        if(equipmentSheet.getNstallationPerson() != null && equipmentSheet.getNstallationPerson().getPersonNo() != null){
            personNo=equipmentSheet.getNstallationPerson().getPersonNo();
        }
        comment=equipmentSheet.getComment();
        customerId=equipmentSheet.getCustomer().getCustomerId();
        customerName=equipmentSheet.getCustomer().getCustomerName();
        customerTel=equipmentSheet.getCustomer().getCustomerTel();
        series=equipmentSheet.getCar().getSeries();
        model=equipmentSheet.getCar().getModel();
        color=equipmentSheet.getCar().getColor();
        vin=equipmentSheet.getCar().getVin();
        carCard=equipmentSheet.getCar().getCarCard();
        startTime=equipmentSheet.getStartTime();
        endingTime=equipmentSheet.getEndingTime();
         totalPrice=equipmentSheet.getTotalPrice();
        givenMoney=equipmentSheet.getGivenMoney();
       receivables=equipmentSheet.getReceivables();
        this.installationPersonList=installationPersonList;
        this.temporaryCarPartsList=temporaryCarPartsList;


    }


}
